package com.shycloud.mido.member.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shycloud.mido.member.api.vo.PayHistoryVORep;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shycloud.mido.member.api.entity.MemberOrder;
import com.shycloud.mido.member.mapper.MemberOrderMapper;
import com.shycloud.mido.member.service.MemberOrderService;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * @author nianhua.jiang
 * @description
 * @date 2020/7/8
 */
@Slf4j
@Service
@AllArgsConstructor
public class MemberOrderServiceImpl extends ServiceImpl<MemberOrderMapper, MemberOrder> implements MemberOrderService {

	/** 订单模块 mapper */
	private MemberOrderMapper memberOrderMapper;

	@Override
	public IPage<PayHistoryVORep> getPayHistoryList(Page page, String username, String payMethod, String orderType, String status,
			String startTime, String endTime) {

		return memberOrderMapper.getPayHistoryList(page, username, payMethod, orderType, status, startTime, endTime);
	}

	@Override
	public IPage<PayHistoryVORep> getPayHistoryListDeposit(Page page, String orderNo, String fuwuOrderNo, String payMethod,
			String orderType, String status) {
		return memberOrderMapper.getPayHistoryListDeposit(page, orderNo, fuwuOrderNo, payMethod, orderType, status);
	}
}
